package com.yanh.common.security;

public class TokenConstant
{
    /**
     * 令牌自定义标识
     */
    public static final String AUTHENTICATION = "Authorization";
    /**
     * 令牌前缀
     */
    public static final String PREFIX = "Bearer ";
    /**
     * 令牌自定义标识
     */
    public static final String RefreshHeader = "RefreshHeader";

    /**
     * 来源
     */
    public static final String FROM_SOURCE = "from-source";

    /**
     * 用户Id
     */
    public static final String USER_ID = "userId";

    /**
     * 用户名称
     */
    public static final String USER_NAME = "username";

    /**
     * 用户缓存key
     */
    public static final String JWT_CACHE_KEY = "jwt:userId:";

    /**
     * access_token
     */
    public static final String ACCESS_TOKEN = "access_token";

    /**
     * refresh_token
     */
    public static final String REFRESH_TOKEN = "refresh_token";

    /**
     * 过期时间
     */
    public static final String EXPIRE_IN = "expire_in";







}
